package com.jgp.common.persistence;


import javax.persistence.*;


/**
 * Created by Gavin Lou on 16/2/27.
 */
@MappedSuperclass
@Inheritance(strategy=InheritanceType.JOINED)
public abstract class UUIDModel extends Model {

    @Id
    @Column(name = "id",length = 32)
    private String id;

    @Override
    public String getId() {
        return id;
    }
    @Override
    public void setId(Object id) {
        this.id = String.valueOf(id);
    }
}
